<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
    </h:head>
    <h:body>
        <h:body>
            <h2>"View Courses"</h2>
            <h:form>
                <h:dataTable value="#{courseBean.courseClasses}" var="course">
                    <h:column>
                        <f:facet name="header">CourseName</f:facet>
                            #{course.coursename}
                    </h:column>
                    <h:column>
                        <f:facet name="header">CourseIdentifier</f:facet>
                            #{course.identifier}
                    </h:column>
                    <h:column>
                        <f:facet name="header">CourseCoordinator</f:facet>
                            #{course.coursecoordinator}
                    </h:column>
                    <h:column>    	
                        <f:facet name="header">AltCourseCoordinator</f:facet>  
                        <h:selectOneMenu value="AltCourseCoordinators" valueChangeListener="#{gUIUtilityClass.whatever}" onchange="submit()">
                            <f:selectItem itemValue="" itemLabel="select"/>     
                            <f:selectItems value="#{course.altCourseCoordinators}"/>     
                        </h:selectOneMenu>
                    </h:column>
                    <h:column>    	
                        <f:facet name="header">CourseOutcomes</f:facet>  
                        <h:selectOneMenu value="CourseOutcomes" valueChangeListener="#{gUIUtilityClass.whatever}" onchange="submit()">
                            <f:selectItem itemValue="" itemLabel="select"/> 
                            <f:selectItems value="#{course.courseOutcomes}"/>     
                        </h:selectOneMenu>
                    </h:column>
                    <h:column>    	
                        <f:facet name="header">DegreePrograms</f:facet>  
                        <h:selectOneMenu value="DegreePrograms" valueChangeListener="#{gUIUtilityClass.whatever}" onchange="submit()">
                            <f:selectItem itemValue="" itemLabel="select"/> 
                            <f:selectItems value="#{course.degreePrograms}"/>     
                        </h:selectOneMenu>
                    </h:column>
                </h:dataTable>
            </h:form>
        </h:body>
    </h:body>
</html>

